# from PyQt5.QtWidgets import QMessageBox
# import time

# QMessageBox.information(self,'as','qw',QMessageBox.Yes|QMessageBox.No)
# def information(self):
#     QMessageBox.information(self,'as','qw',QMessageBox.Yes|QMessageBox.No,QMessageBox.No)

# information(1)
# import tkinter
# import tkinter.messagebox
# # from tkinter import messagebox
# tkinter.messagebox.showinfo('12','qw')
# messagebox.showinfo('12','qw')
import requests
headers = {
    "User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/76.0.3809.132 Safari/537.36"
}
# r=requests.post(r'http://httpbin.org/post',data={'kw':'rpa'},headers=headers)
# print(r.url)
# print(r.status_code)
# print(r.text)
# q={'酒店顾问': 11, '酒店顾问公司': '50+', '酒店咨询': '50+'}
# for i in q:
#     print(i,q[i])

# t=time.strftime("%Y-%m-%d/%H:%M", time.localtime())
# print (t,type(t))
# import multiprocessing
# class Work():
#     def __init__(self):
#         self.name='w'

#     def worker(self,procnum, return_dict):
#         '''worker function'''
#         print(str(procnum) + ' represent!')
#         a={'q':1,'w':2}
#         return_dict['work'] = a

# class Vork():
#     def __init__(self):
#         self.name='v'

#     def worker(self,procnum, return_dict):
#         '''worker function'''
#         print(str(procnum) + 'v!')
#         # return_dict[procnum] = procnum
#         a={'qq':11,'ww':22}
#         return_dict['vork']=a
# import requests

if __name__ == '__main__':
    # url='https://www.google.com/search'
    url='http://118.24.52.95:5010/'
    # proxies={
    #     "http": "http://127.0.0.1:10801",
    #     "https": "https://127.0.0.1:10801",
    # }
    headers={
        "Accept-Language": "zh-CN,zh;q=0.9,en;q=0.8,ja;q=0.7",
        "User-Agent": "Mozilla/5.0 (Windows; U; Windows NT 6.1; en-us) AppleWebKit/534.50 (KHTML, like Gecko) Version/5.1 Safari/534.50",
    }
    # data = {"q": kw, "num": 10, "hl": "zh-CN",}
    datas = {"q": "酒店顾问",}
    # data = {"hl": "zh-CN",}
    r=requests.get(url)
    # r=requests.get(url,params=datas,proxies=proxies,headers=headers)
    print(r.text)
    print(r.status_code,r.url)
    # with open('g.html','w',encoding='utf8')as f:
    #     f.write(r.text)
    #     # f.write(r.content.decode())
